package com.ytktt.study.week12.task11.properties;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * MQTT配置属性
 *
 * @author ytk
 */
@Getter
@Setter
@ConfigurationProperties(prefix = MqttProperties.PREFIX)
public class MqttProperties {

    public static final String PREFIX = "mqtt";

    private String serverUrl;

    private String topic;

    private String clientId;

    private long completionTimeout = 3000L;

    private int qos = 1;
}
